import basePostRequst from './baseServer';


export function xxxxRequst(axios, filter, config) {
    return basePostRequst(axios, '/api/Test', filter, config);
}



export function loginCoreTest(axios, filter, config) {
    return basePostRequst(axios, '/api/Login', filter, config);

}



export function login(axios, filter, config) {
    return basePostRequst(axios, '/api/recruitment/Account/Authenticate', filter, config);

}

export function GetAllUser(axios, filter, config) {

    return basePostRequst(axios, '/api/services/app/user/GetAll', filter, config);
}


export function GetUser(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/user/Get', filter, config);
}

export function GetRoles(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/user/GetRoles', filter, config);
}

export function UpdateUser(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/user/Update', filter, config);
}

export function CreateUser(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/user/Create', filter, config);
}














export function GetAllRoles(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/role/GetAll', filter, config);
}



export function GetAllPermissions(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/role/GetAllPermissions', filter, config);
}


export function GetRolesInfo(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/role/Get', filter, config);
}


export function UpdateRolesInfo(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/role/Update', filter, config);
}


export function AddRolesInfo(axios, filter, config) {
    return basePostRequst(axios, '/api/services/app/role/Create', filter, config);
}



export function CheckAuth(axios, filter, config) {
    return basePostRequst(axios, '/api/Account/CheckAuth', filter, config);

}

export function getUsers(axios, filter, config) {
    return basePostRequst(axios, '/api/Account/GetUserList', filter, config);
}

export function SaveOrUpdateUser(axios, filter, config) {
    return basePostRequst(axios, '/api/Account/SaveUserInfo', filter, config);
}


export function DeleteUser(axios, filter, config) {
    return basePostRequst(axios, '/api/Account/DeleteUser', filter, config);
}

//获取角色列表
export function getRoles(axios, filter, config) {
    return basePostRequst(axios, '/api/Account/GetRoles', filter, config);
}

export function test(axios, filter, config) {
    return basePostRequst(axios, '/api/recruitment/Account/Authenticate', filter, config);
}
